package com.atguigu.serviceedu.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname OrderClient
 * @Description TODO
 * @Date 2022/9/18 11:25
 * @Created by ZHL17
 */
@Component
@FeignClient(name="service-order",fallback=OrderClientImpl.class)
public interface OrderClient {
    @GetMapping("/eduorder/order/isBuyCourse/{memberId}/{id}")
    boolean isBuyCourse(@PathVariable("memberId") String memberId, @PathVariable("id") String id);
}
